<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%@ include file="/WEB-INF/jsp/com/include/doctype.jspf" %>
<script type="text/javascript" src="/kr/common/js/pie/pie_ready.js"></script>
<script type="text/javascript" src="<c:url value='/common/js/jquery-1.7.1.js'/>"></script>
<script type="text/javascript" src="<c:url value='/common/js/jquery-ui-1.8.16.custom.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/common/js/jquery-popup.0.2.js'/>"></script>
<script type="text/javascript" src="<c:url value='/common/js/ajaxupload.js'/>"></script>
<script type="text/javascript" src="<c:url value='/common/js/Common.js'/>"></script>
<script type="text/javascript" src="/kr/common/js/pie/pie_ready.js"></script>
<script>
function DetailView(viewNo){
    
    var tsrdPrctNo = document.getElementById("tsrdPrctNo");
    tsrdPrctNo.value= viewNo;

    var frm = document.MyPageTdaListForm;
     frm.action="<c:url value='/mpg/mpgTdaDetailInfo.do'/>";
    frm.submit();
        
}
</script>
</head>
<body>
<%@ include file="/WEB-INF/jsp/com/include/layerpopup.jspf" %>
<div id="wrap" class="non-subnavigation">
    <%@ include file="/WEB-INF/jsp/com/include/navi_utill_sub.jspf" %>
    <%@ include file="/WEB-INF/jsp/com/include/navi_header.jspf" %>
    <hr />

    <%@ include file="/WEB-INF/jsp/com/include/sub_header_global03.jspf" %>
    <hr />



	<div id="container">
		<div id="subtitle-area"><div class="subtitle-area-inner">
			<%@ include file="/WEB-INF/jsp/com/include/location.jspf" %>
		</div>
        </div>
        <form id ="MyPageTdaListForm" name="MyPageTdaListForm"  onsubmit="return false">
        <input type="hidden" id="tsrdPrctNo" name="tsrdPrctNo" value="">
		<div id="article">
			<ul class="mypage-navigation">
                <li><a href="<c:url value="/mpg/summeryList.do"/>"><img src="/kr/images/global_menu/navi_mypage01_out.gif" alt="나의 요약정보" /></a></li>
                <li><a href="<c:url value="/mpg/pwdCheckView.do"/>"><img src="/kr/images/global_menu/navi_mypage02_out.gif" alt="회원 정보" /></a></li>
                <li><a href="<c:url value="/mpg/QuotList.do"/>"><img src="/kr/images/global_menu/navi_mypage03_out.gif" alt="최근 견적" /></a></li>
                <li><a href="<c:url value="/mpg/ctlgListPaging.do"/>"><img src="/kr/images/global_menu/navi_mypage04_out.gif" alt="카탈로그 신청 이력" /></a></li>
                <li><a href="<c:url value="/mpg/tdaListPaging.do"/>"><img src="/kr/images/global_menu/navi_mypage05_over.gif" alt="시승 신청 이력" /></a></li>
                <li><a href="<c:url value="/mpg/mpgEvntInfoView.do"/>"><img src="/kr/images/global_menu/navi_mypage06_out.gif" alt="이벤트 참여 이력" /></a></li>
                <li><a href="<c:url value="/mpg/QAListPaging.do"/>"><img src="/kr/images/global_menu/navi_mypage07_out.gif" alt="Q&amp;A" /></a></li>
			</ul>
			<h4 class="subsection"><img src="/kr/images/title/h4_global_menu03_05.gif" alt="시승 신청 이력" /></h4>
			<div class="modify-contents-wrap">
				<h5><img src="/kr/images/title/h5_global_menu03_05.gif" alt="시승 신청 이력 LIST" /></h5>
				<p><img src="/kr/images/title/h5_global_menu03_05_desc.gif" alt="현대자동차 홈페이지에서 신청한 최근 3개월 동안의 시승 신청 LIST 입니다." /></p>
				<div class="boardlist-wrap02 subsection02">
					<table summary="예약구분, 시승차량, 시승센터, 시승일시, 시승요청위치, 예약상태">
					<caption>시승 신청 이력</caption>
					<colgroup>
						<col width="20%" />
						<col />
						<col width="13%" />
						<col width="13%" />
						<col width="10%" />
						<col width="8%" />
					</colgroup>
					<thead>
					<tr>
						<th scope="col">예약구분</th>
						<th scope="col">시승차량</th>
						<th scope="col">시승센터</th>
						<th scope="col">시승일시</th>
						<th scope="col">시승요청위치</th>
						<th scope="col">예약상태</th>
					</tr>
					</thead>
					<tbody>
                    <c:forEach var="result" items="${ resultList }" varStatus="status">
                        <tr>
                        <td>${result.tsrdSvcNm}</td>
                        <td class="center"><a href="javascript:DetailView(${result.tsrdPrctNo})">${result.carDtlInfo} / ${result.carXrclCtyNm }</a></td>
                        <td class="center">${result.ctrNm }</td>
                        <td class="center">${result.tsrdDt}</td>
                        <td class="center">${result.sbcrAddr1} ${result.sbcrAddr2 }</td>
                        <td class="center last">${result.prctStNm }</td>
                        </tr>                    
                    </c:forEach>

					</tbody>
					</table>
				</div>
			</div>
		</div>
        </form>
        
	</div>
	<hr />
    <%@ include file="/WEB-INF/jsp/com/include/footer.jspf" %>